#include "Announce.h"

Announce::Announce(std::string name, std::string hostIP, std::string hostPort)
    :Packet(hostIP, hostPort)
{
    //ctor
    this->userName = name;
}

Announce::~Announce()
{
    //dtor
}

template<class Archive>
void Announce::serialize(Archive & ar, const unsigned int version)
{
    // serialize base class information
    ar & boost::serialization::base_object<Packet>(*this);
    ar & userName;
}

std::string Announce::getName() const
{
    return userName;
}
